package com.huamao.niceman.scrollviewpager.mine.view;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.huamao.niceman.scrollviewpager.R;
import com.huamao.niceman.scrollviewpager.base.BaseActivity;
import com.huamao.niceman.scrollviewpager.base.BaseFragment;
import com.huamao.niceman.scrollviewpager.base.BasePresent;
import com.huamao.niceman.scrollviewpager.mine.present.MinePresent;
import com.huamao.niceman.scrollviewpager.utils.FragmentInterface;

/**
 * Created by LuanXianSheng on 2017/6/14.
 * 个人中心
 */

public class MineFragment extends BaseFragment implements FragmentInterface {
private MinePresent mPresent ;
    private BaseActivity act ;

    @Override
    public void onAttach(Context context) {
        super.onAttach(context);
        act = (BaseActivity) context ;
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        creatPresent() ;
        return inflater.inflate(R.layout.fragment_mine,null);
    }

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        init();
        setData();
    }

    @Override
    public BasePresent creatPresent() {
        mPresent = new MinePresent(this) ;
        return null;
    }

    @Override
    public void init() {

    }

    @Override
    public void setData() {

    }

    @Override
    public void getData(Object object) {

    }
}
